﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    enum BlacksmithType 
    {
        修补,
        强化,
        打造
    }
    class Blacksmith : NPC
    {
        private BlacksmithType blacksmithType;
        public BlacksmithType BlacksmithTyoe
        {
            get { return this.blacksmithType; }
            set { this.blacksmithType = value; }
        }
        public override void Hello()
        {
            Console.WriteLine("我的名字是{0}，我属于{1}，我从事{2}工作，请问需要{3}武器吗？", base.Name, base.Type, this.blacksmithType, this.blacksmithType);
        }
        public Blacksmith(string name , NPCType type , BlacksmithType blacksmithType ):base( name , type) 
        {
            this.blacksmithType = blacksmithType;
        }
    }
}
